# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-aiofiles-gns3
_pkgname=aiofiles
pkgver=0.4.0
pkgrel=0
pkgdesc="File support for asyncio - GNS3 compatible version"
url="https://github.com/Tinche/aiofiles"
arch="noarch"
license="Apache-2.0"
depends="python3"
makedepends="python3-dev py3-setuptools !py3-aiofiles"
checkdepends="py3-pytest py3-pytest-asyncio"
source="$_pkgname-$pkgver.tar.gz::https://github.com/Tinche/aiofiles/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

check() {
	PYTHONPATH="$builddir"/build/lib pytest
}

package() {
	python3 setup.py install --root="$pkgdir" --optimize=1
}

sha512sums="9e1f8b2beb3ca2996b35de9281ceafbb8ccdeab4b213f9605cb5908558c5f495d1cf4481ac229ca44bb236ad99826d89d137ec6ac4386c23b6e056b657a6bf4a  aiofiles-0.4.0.tar.gz"
